« Meta elements (variable) » : différence entre les versions
De Semantic MediaWiki - Sandbox
m (Kghbln moved page MetaTags to Meta elements (variable) without leaving a redirect: namechg) |
(chg) |
||
Ligne 1 : | Ligne 1 : | ||
For the given | For the given setting on this wiki: | ||
<syntaxhighlight lang="php"> | <syntaxhighlight lang="php"> | ||
$smtgTagsProperties = array( | $smtgTagsProperties = array( | ||
'keywords' => 'Meta | 'keywords' => 'Meta element keywords', | ||
'description' => 'Meta | 'description' => 'Meta element description' | ||
); | ); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Ligne 10 : | Ligne 10 : | ||
The following annotations are to generate additional meta elements: | The following annotations are to generate additional meta elements: | ||
<syntaxhighlight lang="text" enclose="div"> | <syntaxhighlight lang="text" enclose="div"> | ||
[[Meta | [[Meta element keywords::SMW Project]], [[Meta element keywords::Semantic MediaWiki]], [[Meta element keywords::scratchpad]], [[Meta element keywords::sandbox]], [[Meta element keywords::testsite]] | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Meta | [[Meta element keywords::SMW Project]],[[Meta element keywords::Semantic MediaWiki]], [[Meta element keywords::scratchpad]], [[Meta element keywords::sandbox]], [[Meta element keywords::testsite]] | ||
<syntaxhighlight lang="text" enclose="div"> | <syntaxhighlight lang="text" enclose="div"> | ||
[[Meta | [[Meta element description::This is the sandbox wiki of the SMW Project and allows you to carry out edit experiments with the software.]] | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Meta | [[Meta element description::This is the sandbox wiki of the SMW Project and allows you to carry out edit experiments with the software.]] | ||
[[Category:Semantic MetaTags example]] | [[Category:Semantic MetaTags example]] |
Version du 25 octobre 2015 à 01:27
For the given setting on this wiki:
$smtgTagsProperties = array(
'keywords' => 'Meta element keywords',
'description' => 'Meta element description'
);
The following annotations are to generate additional meta elements:
[[Meta element keywords::SMW Project]], [[Meta element keywords::Semantic MediaWiki]], [[Meta element keywords::scratchpad]], [[Meta element keywords::sandbox]], [[Meta element keywords::testsite]]
SMW Project,Semantic MediaWiki, scratchpad, sandbox, testsite
[[Meta element description::This is the sandbox wiki of the SMW Project and allows you to carry out edit experiments with the software.]]
This is the sandbox wiki of the SMW Project and allows you to carry out edit experiments with the software.