Template:Sentence/doc

From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history

Gets a full sentence from text. Used to return the first or a subsequent sentence by searching for the end of a sentence regardless of language. Useful for extracting sentences film system messages containing multiple sentences.

Template:Full stop separator is used to find the punctuation at the end for sentences in that language.

Parameters
1 text (required)
lang (language, defaults to en)
Examples
{{Sentence|Hello there. My name is Sam.}}

Hello there.

{{Sentence|Hello there. My name is Sam.|lang=es}}

Hello there.

{{Sentence|Hello there $1, my name is Sam. This is a $2 page for testing.|lang=en}}

Hello there $1, my name is Sam.


Using a language that doesn't use a period dot for end of sentence (։ not a colon)

{{Sentence|Hello there $1, my name is Sam. this is a $2 page for testing։ Sentence 2|lang=hy}}


System message MediaWiki:search-rewritten which is Showing results for $1. No results found for $2. Note: it's not a minus or hyphen between those words.

{{Sentence|{{int:search-rewritten}}}}

Showing results for $1.