年代区分
Appearance
実装
関連するドメインのルートディレクトリにage-de.xml ファイルを格納するのは簡単です。
HTML構造へのメタデータのエントリは、それほど重要ではありません。
<meta name="age-de-meta-label" content="age=0 hash: YourDigitalCode v=1.0 kind=sl protocol=all"/>
The following HTML snippet is inserted for example in the Skin Vector in the function getTemplateData of the class SkinVector or in the Skin MonoBook in the function setupSkinUserCss of the class SkinMonoBook:
global $wgAgeClassificationMetaName, $wgAgeClassificationMetaContent;
if ( !empty( $wgAgeClassificationMetaName ) AND !empty( $wgAgeClassificationMetaContent ) ) {
$out->addMeta( $wgAgeClassificationMetaName, $wgAgeClassificationMetaContent );
}
The global variables $wgAgeClassificationMetaName and $wgAgeClassificationMetaContent are then set in the LocalSettings.php according to the specifications of – in Germany – "altersklassifizierung.de".
関連項目
外部リンク
- Wikipedia - Age verification system