Approved version. Approved on: 15:39, 23 February 2021
Difference between revisions of "Template:ArticleBasedOnModel"
[checked revision] | [quality revision] |
m
|
m
|
1 Usage[edit]
The ArticleBasedOnModel template is used to store, in a page, the name of the model on which the page is based. It should be added at the bottom of the page that is based on a model. The models are available in the Using models category.
It puts a message box with a "light blue documents" icon in the page.
Only logged-in users who have writing permissions, can see this box. However, do not put any confidential information in the parameters of this template.
Usage: {{ArticleBasedOnModel | <model page>}}
Where:
- <model page> is the mandatory name of the model page without its namespace (e.g. if the model page is "Contributors:How to article model", then <model page> is "How to article model")
2 Basic examples[edit]
You type | You get |
---|---|
Article based on "Contributors:How to article model" model {{ArticleBasedOnModel | How to article model}} |
3 More examples[edit]
You type | You get |
---|---|
No model supplied {{ArticleBasedOnModel}} |
|
Article based on an unknown model: bad link {{ArticleBasedOnModel | Unknown model}} |
|
Check that the spaces before and after the message BEFORE{{ArticleBasedOnModel}}AFTER<br> BEFORE {{ArticleBasedOnModel}} AFTER |
BEFOREAFTER AFTER |
4 Maintenance[edit]
This template is a template common to all ST wikis.
Modifications must be done into the WikiModel. They must be reviewed by all ST wikis maintainers.
When approved, the template can be pushed/merged towards all ST wikis.
5 Code[edit]
<noinclude> ==Usage== The [[Template:ArticleBasedOnModel|ArticleBasedOnModel]] template is used '''to store, in a page, the name of the model on which the page is based'''. It should be added at the bottom of the page that is based on a model. The models are available in the [[:Category:Using models|Using models]] category. It puts a message box with a "light blue documents" icon in the page. '''Only logged-in users who have writing permissions, can see this box'''. {{Highlight|However, do not put any confidential information in the parameters of this template}}. Usage: <nowiki>{{</nowiki>ArticleBasedOnModel | {{HighlightParam|<model page>}}}} Where: * {{HighlightParam|<model page>}} is the '''mandatory''' name of the model page '''without its namespace''' (e.g. if the model page is "Contributors:How to article model", then {{HighlightParam|<model page>}} is "How to article model") ==Basic examples== {| class="st-table" ! You type !! You get |- | Article based on "Contributors:How to article model" model<pre style="white-space: pre-wrap;"> {{ArticleBasedOnModel | How to article model}}</pre> | {{ArticleBasedOnModel | How to article model}} |} ==More examples== {| class="st-table" ! You type !! You get |- | No model supplied<pre style="white-space: pre-wrap;"> {{ArticleBasedOnModel}}</pre> | {{ArticleBasedOnModel}} |- | Article based on an unknown model: bad link<pre style="white-space: pre-wrap;"> {{ArticleBasedOnModel | Unknown model}}</pre> | {{ArticleBasedOnModel | Unknown model}} |- | Check that the spaces before and after the message<pre style="white-space: pre-wrap;"> BEFORE{{ArticleBasedOnModel}}AFTER<br> BEFORE {{ArticleBasedOnModel}} AFTER</pre> | BEFORE{{ArticleBasedOnModel}}AFTER<br> BEFORE {{ArticleBasedOnModel}} AFTER |} ==Maintenance== This template is a template common to all ST wikis. <br> Modifications must be done into the [[stwikimodel:Template:ArticleBasedOnModel|WikiModel]]. They must be reviewed by all ST wikis maintainers.<br> When approved, the template can be pushed/merged towards all ST wikis. ==Code==</noinclude>{{#tag:secureTransclude|| src=ProtectedTemplate:ArticleBasedOnModel| params={{{1|}}} }}
Line 54: | Line 54: | ||
AFTER |
AFTER |
||
|} |
|} |
||
+ | |||
==Maintenance== |
==Maintenance== |
||
This template is a template common to all ST wikis. <br> |
This template is a template common to all ST wikis. <br> |