Template:Title: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(this is in development)
No edit summary
 
(59 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{rev|}}}|[[review::{{{rev}}}| ]]|[[review::0| ]]}}[[page type is::title| ]]{{#if:{{#show:{{FULLPAGENAME}} |?missing}}|{{Incomplete}}|}}{{#if:{{#show:{{FULLPAGENAME}} |?title requirement}}||[[missing::TitleReq template use| ]][[missing::title requirement| ]]}}{{#if: {{{subcat|}}} | {{#arraymap:{{{subcat}}}|,|x|[[title subcategory is::x| ]]|}}|}}{{#switch:{{{diff|}}}|0|=[[title difficulty is::2000| ]][[missing::calculated title difficulty| ]] | [[title difficulty is::{{{diff}}}| ]] }}{{#switch:{{{category}}} | Survival 1 | Survival 2 | Survival 3=[[title category is::Category:Survival titles| ]][[Category:Survival titles|{{PAGENAME}}]] | Blunt | Ranged | Brawling | GenEdged | SpecEdged | Thrown | Pole | Slings | WeaponMaster | Shield=[[title category is::Category:Combat titles| ]][[Category:Combat titles|{{PAGENAME}}]] }}{{#switch:{{lc:{{{category}}}}}|bard|barbarian|cleric|empath|paladin|ranger|trader|thief|warrior mage=[[guild association is::{{{category}}}| ]]|moon mage|sect|astrology=[[guild association is::Moon Mage| ]]}}[[Category:{{{category}}} titles|{{PAGENAME}}]][[Category:titles|{{PAGENAME}}]]'''[[pretty name is::{{{titlename|{{PAGENAME}}}}}]]''' is a [[:Category:Titles|title]] in the [[title category is::Category:{{{category}}} titles|{{{category}}}]] Category.{{#if:{{{translation|}}}|<br />
<includeonly>[[page type is::title| ]]{{ #if: {{{page|}}} |
'''Translation:''' {{{translation}}} ({{#if:{{{language|}}}|[[title language is::{{{language}}}]]|''Unknown language''[[missing::title's language| ]]}})}}<br />
{{ #ifeq: {{PAGENAME}} | {{{page}}}
<br />
;{{{titlename|{{PAGENAME}}}}}
;Requirements:</includeonly><noinclude>USAGE Information:
{{ #ifeq: {{{page}}} | {{{titlename|{{{page}}}}}} | [[{{{page}}}]] | [[{{{page}}}{{!}}{{{titlename}}}]] }}

{{ #switch: {{lc:{{{maleonly}}}}} |y|yes=<nowiki>*</nowiki>}}{{ #switch: {{lc:{{{femaleonly}}}}} |y|yes=<nowiki>+ }}
<pre>{{Title
|new=yes/no
|titlename=name
|translation=
|language=
|category=
|subcat=
|diff=
}}
}}
{{TitleReq|<type>|<specific>|<specific2>}}
{{ #ifeq: {{PAGENAME}} | {{{page}}}
...
| <!-- NoInclude -->
{{TitleReq|<type>|<specific>|<specific2>}}</pre>

{{ #switch: {{lc:{{{maleonly}}}}} |y|yes=
: [[title requirement::{{strip|s=Must be male}}]] }}

{{ #switch: {{lc:{{{femaleonly}}}}} |y|yes=
: [[title requirement::{{strip|s=Must be female}}]] }}

{{ #if: {{{translation|}}} |
: Translation - {{{translation}}} }}

{{ #if: {{{subcat|}}} |
{{#arraymap:{{{subcat}}}|,|x|[[title subcategory is::x| ]]|}}}}

{{#if: {{{diff|}}} | {{#ifeq:{{{diff}}}| 0 | [[title difficulty is::2000| ]] | [[title difficulty is::{{{diff}}}| ]] }}| }}

{{#if: {{{1|}}} |
: {{Template:Title2|{{strip|s={{{1}}} }}|{{{1}}}}} }}
{{ #if: {{{2|}}} |
: [[title requirement::{{strip|s={{{2}}} }}]] }}
{{ #if: {{{3|}}} |
: [[title requirement::{{strip|s={{{3}}} }}]] }}
{{ #if: {{{4|}}} |
: [[title requirement::{{strip|s={{{4}}} }}]] }}
{{ #if: {{{5|}}} |
: [[title requirement::{{strip|s={{{5}}} }}]] }}
{{ #if: {{{6|}}} |
: [[title requirement::{{strip|s={{{6}}} }}]] }}
{{ #if: {{{7|}}} |
: [[title requirement::{{strip|s={{{7}}} }}]] }}
{{ #if: {{{8|}}} |
: [[title requirement::{{strip|s={{{8}}} }}]] }}
{{ #if: {{{9|}}} |
: [[title requirement::{{strip|s={{{9}}} }}]] }}
{{ #if: {{{10|}}} |
: [[title requirement::{{strip|s={{{10}}} }}]] }}
{{ #if: {{{11|}}} |
: [[title requirement::{{strip|s={{{11}}} }}]] }}

{{ #ifeq: {{PAGENAME}} | {{{page}}}
| <!-- NoInclude -->
{{{titlename|{{{page}}}}}} is a [[:Category:Titles|title]] in the [[title category is::Category:{{{category}}} Titles|{{{category}}}]] Category.
{{#switch:{{{category}}} | Survival 1 | Survival 2 | Survival 3=[[title category is::Category:Survival Titles| ]]{{cat|Survival Titles}} | Blunt | Ranged | Brawling | GenEdged | SpecEdged | Thrown | Pole | Slings | WeaponMaster | Shield=[[title category is::Category:Combat Titles| ]]{{cat|Combat Titles}} }}{{#switch:{{lc:{{{category}}}}}|bard|barbarian|cleric|empath|paladin|ranger|trader|thief|warrior mage=[[guild association is::{{lc:{{{category}}}}}| ]]|moon mage|sect|astrology=[[guild association is::moon mage| ]]}}{{cat|{{{category}}} Titles}}{{cat|Titles}}}}
|
<div class="boilerplate metadata" id="Error!" style="{{divstylered}}"><center><b>Error!</b></center>
{{{!}} style="background:#ffcccc;"
{{!}}- valign="top" align="left"
{{!}} [[Image:Caution.png]]
{{!}} width="25" {{!}}
{{!}} Use of <nowiki>{{title}}</nowiki> requires the use of the page parameter <br /> see the [[:Template:title|Usage]] Information.
{{!}}}</div> }}</includeonly>
<noinclude>USAGE Information:

<nowiki>{{</nowiki>title
|page=<nowiki>{{subst:PAGENAME}}</nowiki>
|category=category
|titlename=<span style="color:green;">title</span><sup style="color:blue;font-size:80%;">[1]</sup>
|maleonly=<span style="color:orange;">yes/y/no/n</span><sup style="color:blue;font-size:80%;">[2]</sup>
|femaleonly=<span style="color:orange;">yes/y/no/n</span><sup style="color:blue;font-size:80%;">[2]</sup>
|translation=
|subcat=cat1,cat2,cat3,cat4,etc.
|diff=
|Req1
|Req2
....
|Req11
}}


* new -- Indicates whether or not the title has been updated to the 3.0 version.
* [1] -- Only need if pagename is different than title name (such as if there is a disambiguation)
* titlename -- The name of the title, if different from the page name.
* [2] -- Adding "yes" or "y" will activate this field; '''Warning''' bad things<sup>tm</sup> can happen if you mark both.
* translation -- The translation of the name, if not in common.
* page -- will have to be manually changed if the page is ever moved.
* language -- The language the name is in, if not in common.
* category -- what category of title this is.
* category -- What category of title this is.
* subcat -- Defines lesser categories, such as spellbook, necessary skills, etc. for correct semantic searches.
* subcat -- Manual inclusion into lesser categories, such as spellbook, necessary skills, etc. for correct semantic searches. Unless something odd happens, it should always define itself.
* diff -- Used to declare the relative difficulty to achieve the title. See [[Property:title difficulty is]] for information on how to determine the value.
* diff -- Used to declare the relative difficulty to achieve the title. See [[Property:title difficulty is]] for information on how to determine the value.
* LEAVE UNUSED (and unneeded) values OUT COMPLETELY.
* Req1 ... Req11 -- Each line (note, NO = sign) is the wikitext for that particular title requirement, if more requirements than detailed here are needed, just add them to the particular title page (as if more was allowed) and add a comment on this template's [[Template_talk:title|talk]] page.
[[Category:Templates]]
{{cat|Templates}}
* LEAVE UNUSED (and unneeded) values OUT COMPLETELY. (titlename for example is only needed if the titlename is different than the page-name, such as in Disambiguation issues)
[[Category:Templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Latest revision as of 08:01, 6 August 2021

USAGE Information:

{{Title
|new=yes/no
|titlename=name
|translation=
|language=
|category=
|subcat=
|diff=
}}
{{TitleReq|<type>|<specific>|<specific2>}}
...
{{TitleReq|<type>|<specific>|<specific2>}}
  • new -- Indicates whether or not the title has been updated to the 3.0 version.
  • titlename -- The name of the title, if different from the page name.
  • translation -- The translation of the name, if not in common.
  • language -- The language the name is in, if not in common.
  • category -- What category of title this is.
  • subcat -- Manual inclusion into lesser categories, such as spellbook, necessary skills, etc. for correct semantic searches. Unless something odd happens, it should always define itself.
  • diff -- Used to declare the relative difficulty to achieve the title. See Property:title difficulty is for information on how to determine the value.
  • LEAVE UNUSED (and unneeded) values OUT COMPLETELY.