Registered User m (9 revisions imported) |
Registered User (Merge articles) |
||
Line 5: | Line 5: | ||
It puts a message box with a "light blue documents" icon in the page. | It puts a message box with a "light blue documents" icon in the page. | ||
'''Only | '''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>}}}} | Usage: <nowiki>{{</nowiki>ArticleBasedOnModel | {{HighlightParam|<model page>}}}} | ||
Line 40: | Line 40: | ||
| | | | ||
{{ArticleBasedOnModel | Unknown model}} | {{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== | ==Code== | ||
</noinclude> | </noinclude>{{#tag:secureTransclude|| | ||
{{#tag:secureTransclude|| | |||
src=ProtectedTemplate:ArticleBasedOnModel| | src=ProtectedTemplate:ArticleBasedOnModel| | ||
params={{{1|}}} | params={{{1|}}} | ||
}} | }} |
Latest revision as of 15:34, 28 July 2021
1. Usage
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.
<model page>}}Usage: {{ArticleBasedOnModel |
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
You type | You get |
---|---|
Article based on "Contributors:How to article model" model
{{ArticleBasedOnModel | How to article model}}
|
3. More examples
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
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.