Template:Phrasebook: Difference between revisions

From Linguifex
Jump to navigation Jump to search
(Created page with "{{#vardefine:Lang|{{ucfirst:{{{lang|{{{1|}}}}}}}}}} <div class="mw-collapsible" style="background-color:#FFB90F; margin: 0px 0px -1px 0px; padding: 2px; border: 1px solid #aaa...")
 
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#vardefine:Lang|{{ucfirst:{{{lang|{{{1|}}}}}}}}}}
{{#vardefine:Lang|{{ucfirst:{{{lang|{{{1|}}}}}}}}}}
<div class="mw-collapsible" style="background-color:#FFB90F; margin: 0px 0px -1px 0px; padding: 2px; border: 1px solid #aaaaaa; text-align: center; boder-collapse: collapse; font-size: 95%; overflow: auto; width: auto;">
<div class="mw-collapsible mw-collapsed" style="background-color:#FFB90F; margin: 0px 0px -1px 0px; padding: 2px; border: 1px solid #aaaaaa; text-align: center; boder-collapse: collapse; font-size: 95%; overflow: auto; width: auto;">
<div style="background:#FFFFbf; min-height: 1.6em; font-weight: bold; font-size: 100%; text-align: left; padding-left: 10px;">{{#if:{{#var:Lang}}|{{#var:Lang}}|Undetermined}} phrasebook</div>
<div style="background:#FFFFbf; min-height: 1.6em; font-weight: bold; font-size: 100%; text-align: left; padding-left: 10px;">{{#if:{{#var:Lang}}|{{#var:Lang}}|Undetermined}} phrasebook</div>
<div class="mw-collapsible-content" style="font-size: 100%">
<div class="mw-collapsible-content" style="font-size: 100%">
Line 6: Line 6:
|-
|-
| style="width:100px" style="text-align:left;" | [[File:Open book 01.svg|40px]]
| style="width:100px" style="text-align:left;" | [[File:Open book 01.svg|40px]]
| This entry is a phrasebook entry for {{#switch:{{{link|{{{2|}}}}}}|true|1|yes=[[Appendix:{{#var:Lang}} phrasebook|{{#var:Lang}} phrasebook]]|false|0|no|#default={{#if:{{#var:Lang}}|{{#var:Lang}}|Undetemined}} phrasebook}}, meaning that the expression is valuable enough for learners based on utility, simplicity and commonality.<!--
| This entry is a phrasebook entry for {{#switch:{{{link|{{{3|1}}}}}}|true|1|yes={{#if:{{{linkedpage|{{{4|}}}}}}|[[{{{linkedpage|{{{4|}}}}}}|{{#var:Lang}}]]|[[{{#var:Lang}}]]}}|false|0|no|#default={{#if:{{#var:Lang}}|{{#var:Lang}}|Undetemined}}}}, meaning that the expression is valuable enough for learners of the language based on utility, simplicity and commonality.<!--
-->{{#switch:{{{cat|{{{3|}}}}}}|true|1|yes=[[Category:{{#var:Lang}} phrasebook]]|false|0|no=|}}
-->{{#switch:{{{cat|{{{2|{{#ifeq:{{NAMESPACE}}|Template|0|1}}}}}}}}|true|1|yes=[[Category:{{#var:Lang}} phrasebook]]|false|0|no=|}}
|}</div></div>
|}</div></div><noinclude>
{{documentation}}
[[Category:Contionary templates]][[Category:Templates]]
</noinclude>

Latest revision as of 23:08, 11 April 2021

Undetermined phrasebook
Open book 01.svg This entry is a phrasebook entry for [[]], meaning that the expression is valuable enough for learners of the language based on utility, simplicity and commonality.

This template lets you create a phrasebook notice, preferably directly under the second-level heading (==Header==). See English Wiktionary entry how are you, for example.

Usage

{{phrasebook|lang= |cat= |link= |linkedpage=}}

|lang=, |1= #REQUIRED
Your language's name. Automatically capitalized.
|cat=, |2=
Adds the entry to Category:language name phrasebook.,
|link=, |3=
Adds a link to your language's phrasebook page. It defaults to Appendix:language name phrasebook if true.
|linkedpage=, |4=
Sets up a custom link. Do not write the square brackets.

|cat= and |link= can be turned on or off by setting their values to true, 1, yes or false, 0, no, respectively. Other vaules will be ignored. Their default values are always false.

Example

{{phrasebook|lang=dothraki|link=true|linkedpage=Portal:Contionary}}

Dothraki phrasebook
Open book 01.svg This entry is a phrasebook entry for Dothraki, meaning that the expression is valuable enough for learners of the language based on utility, simplicity and commonality.