Template:ContentTag: Difference between revisions
mNo edit summary |
No edit summary |
||
| Line 9: | Line 9: | ||
| Tool = {{{type}}}{{Voidd|{{ContentTag/type/{{{type}}}}}}} | | Tool = {{{type}}}{{Voidd|{{ContentTag/type/{{{type}}}}}}} | ||
| {{{type}}}{{Voidd|{{ContentTag/type/other}}}}<!--switch end-->}} | | {{{type}}}{{Voidd|{{ContentTag/type/other}}}}<!--switch end-->}} | ||
}}{{#if:{{{description|}}}|*'''Description''': {{{description}}} | }}<!--Quick monitoring for other parameter(s)... | ||
-->{{Voidd|{{ContentTag/gender/{{ #ifeq: {{{gender|+}}} | {{{gender|-}}} ||un}}defined}}<!-- | |||
Back to actual template... | |||
-->{{#if:{{{description|}}}|*'''Description''': {{{description}}} | |||
}}{{#if:{{{note|}}}|*'''Note''': {{{note}}} | }}{{#if:{{{note|}}}|*'''Note''': {{{note}}} | ||
}}{{#if:{{{gender|}}}|*'''Gender''': {{{gender}}} | }}{{#if:{{{gender|}}}|*'''Gender''': {{{gender}}} | ||
| Line 35: | Line 38: | ||
*Fix male example 1? So that it'll start with a comma if there was a female example before it, or not if not. | *Fix male example 1? So that it'll start with a comma if there was a female example before it, or not if not. | ||
**Could operate as simply as "if example1 is defined". | **Could operate as simply as "if example1 is defined". | ||
==Quick template for pasting== | ==Quick template for pasting== | ||
| Line 108: | Line 110: | ||
==Parameter Monitoring== | ==Parameter Monitoring== | ||
The ''type'' parameter's value is " | The ''type'' parameter's value is "monitored". This means you can see a list of the pages that use a given value for ''type'' by viewing the appropriate page below. "other" is not a specific value, but rather any value (including undefined/not set) not covered by the rest of the links. | ||
*[[Special:Whatlinkshere/Template:ContentTag/type/Activity]] | *[[Special:Whatlinkshere/Template:ContentTag/type/Activity]] | ||
*[[Special:Whatlinkshere/Template:ContentTag/type/Animal]] | *[[Special:Whatlinkshere/Template:ContentTag/type/Animal]] | ||
| Line 120: | Line 121: | ||
*[[Special:Whatlinkshere/Template:ContentTag/type/other]] | *[[Special:Whatlinkshere/Template:ContentTag/type/other]] | ||
It would be possible to set up similar monitoring for the other parameters (limited to only "defined" or "undefined" | The ''gender'' parameter is also monitored so that you can see where this value has and hasn't been set. This should be roughly equivalent to "this tag has versions in the Male and Female (and possibly Misc) namespaces, or not". | ||
*[[Special:Whatlinkshere/Template:ContentTag/gender/defined]] | |||
*[[Special:Whatlinkshere/Template:ContentTag/gender/undefined]] | |||
It would be possible to set up similar monitoring for the other parameters (limited to only "defined" or "undefined"), but there is less chance that this would ever be useful for those. | |||
[[Category:Template]] | [[Category:Template]] | ||
</noinclude> | </noinclude> | ||
Revision as of 12:42, 26 March 2013
To Do
- Not sure about how both male and female slave tags should be displayed at the same time. Or how to deal with the slave tags note in this case.
- Fix male example 1? So that it'll start with a comma if there was a female example before it, or not if not.
- Could operate as simply as "if example1 is defined".
Quick template for pasting
{{ContentTag
|type=
|description=
|note=
|gender=
|taggroupid=
|maletaggroupid=
|slavetagsnote=
|example1=
|example2=
|example3=
|example4=
|example5=
|example6=
|maleexample1=
|maleexample2=
|maleexample3=
|maleexample4=
|maleexample5=
|maleexample6=
}}
Parameters
Any parameter can be omitted.
- type: The tag's generic type.
- Suggested values: Activity, [[Animal]], Attribute, Change, [[Costume]], Creature, Technical, Tool.
- description: The definition for the tag. A description of how/where the tag should be used.
- note: Any notes for this tag.
- gender: An explanation of how to know when to put this tag in the male or female namespace, if applicable.
- taggroupid, maletaggroupid: The ID for this tag's female/male tag groups (respectively) in the tag tool, if there is a tag group and if there are distinct female and male versions.
- If the tag does not have female and male versions, using either parameter (in isolation) will have the same result.
- slavetagsnote: A note for the slave tags, usually like "with notable synonyms Something and Other".
- example(X), maleexample(X): A URL pointing to a female/male example image.
- While the template does not enforce sequential use of example numbers in any way, skipping numbers (especially 1) may result in an odd format.
Any parameter except taggroupid or example(X) (or their male versions) may include wiki or HTML code, so long as there aren't any disruptive strings like stray "|"s.
Examples
{{ContentTag
|type=[[Costume]]
|description=Short gym pants, color and length may vary.
|note=Should '''not''' be confused with the [[bloomers]] tag.
|gender=The one wearing the gymshorts decides if the tag is placed in the female or male [[namespaces|namespace]].
|taggroupid=8004
|example1=http://g.e-hentai.org/s/a12fdf19d1/524931-15
|example2=http://g.e-hentai.org/s/387da70f57/554077-13
}}
{{ContentTag
|type=[[Costume]]
|description=Male version of [[schoolgirl]].
|gender=The one wearing the schoolboy uniform decides if the tag is placed in the female or male [[namespaces|namespace]].
::::If female, it should be used in conjunction with the [[crossdressing|female:crossdressing]] tag.
|maletaggroupid=3700
}}
The results of these examples may be seen on the gymshorts and schoolboy pages respectively. I decline to reproduce the examples here so that this page does not become part of the Tag category.
Parameter Monitoring
The type parameter's value is "monitored". This means you can see a list of the pages that use a given value for type by viewing the appropriate page below. "other" is not a specific value, but rather any value (including undefined/not set) not covered by the rest of the links.
- Special:Whatlinkshere/Template:ContentTag/type/Activity
- Special:Whatlinkshere/Template:ContentTag/type/Animal
- Special:Whatlinkshere/Template:ContentTag/type/Attribute
- Special:Whatlinkshere/Template:ContentTag/type/Change
- Special:Whatlinkshere/Template:ContentTag/type/Costume
- Special:Whatlinkshere/Template:ContentTag/type/Creature
- Special:Whatlinkshere/Template:ContentTag/type/Technical
- Special:Whatlinkshere/Template:ContentTag/type/Tool
- Special:Whatlinkshere/Template:ContentTag/type/other
The gender parameter is also monitored so that you can see where this value has and hasn't been set. This should be roughly equivalent to "this tag has versions in the Male and Female (and possibly Misc) namespaces, or not".
- Special:Whatlinkshere/Template:ContentTag/gender/defined
- Special:Whatlinkshere/Template:ContentTag/gender/undefined
It would be possible to set up similar monitoring for the other parameters (limited to only "defined" or "undefined"), but there is less chance that this would ever be useful for those.