User:Shushugah/documentation
Personal notes on useful templates and examples
Help:A_quick_guide_to_templates functions that generate wiki markdown content. By default, templates are transclusive so you'll see the template used rather than the compiled text. It has syntax of {{some_function}}
. To use it with substitution (i.e. permanently create text at publish time, such as {{subst:some_function}}
. A real example would be {{subst:Uw-plagiarism}}
which can be found on Template:Uw-plagiarism. A common example would be signing posts with ~~~~
. Templates are platform specific, and can accept arguments. Templates can be nested.
Useful templates
Inter Language Links Markup and repeat markup Userbox styling US Supreme court and Case law
Personal use cases
Markup and compiled result
This substituted Mra code {{subst:Mra|{{ill|Jüdische Rundschau|de|Jüdische Rundschau|he|יידישה רונדשאו}}}}
produces what you see in immediate section below.
Interlanguage Links
English wikilink with German and Hebrew interlanguage links in this edit
Markup | Renders as |
---|---|
{{ill|Jüdische Rundschau|de|Jüdische Rundschau|he|יידישה רונדשאו}} |
|
Nested infoboxes
Note the param module, and embed=yes. Used in this edit
Markup | Renders as | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
{{Infobox person | image = Uri Avneri 1965-11-01 (cropped).jpg | caption = Avnery in 1965 |birth_name = '''Helmut Ostermann''' | birth_date = {{Birth date|df=y|1923|9|10|}} | birth_place = [[Beckum, Germany|Beckum]], Germany | death_date = {{death date and age|df=y|2018|8|20|1923|9|10|}} | death_place = [[Tel Aviv]], [[Israel]] |module = {{Infobox member of the Knesset |embed = yes | Year of Aliyah = 1933 | Knesset(s) = [[Israeli legislative election, 1965|6]], [[Israeli legislative election, 1969|7]], [[Israeli legislative election, 1977|9]] | party1 = [[Meri (political party)|Meri]] | partyyears1 = 1965–1974 | party2 = [[Left Camp of Israel]] | partyyears2 = 1979–1981 }} }} |
| ||||||||||